package liu.thread.thread.pringabc;

public class PrintN implements Runnable {

	private Print print;
	

	public PrintN(Print print) {
		this.print = print;
		
	}

	@Override
	public void run() {
		boolean flag=true;
		while(flag){
			try {
				flag=print.num();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
